x86: rate-limit logging in do_xen{oprof,pmu}_op()
authorJan Beulich <jbeulich@suse.com>
Thu, 29 Oct 2015 12:37:19 +0000 (13:37 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 29 Oct 2015 12:37:19 +0000 (13:37 +0100)
commit95e7415843b94c346e5ba8682665f508f220e04b
tree87686e1fe81f8116297538eb64bc072b19be4ea4
parent6e97c4b37386c2d09e09e9b5d5d232e37728b960
x86: rate-limit logging in do_xen{oprof,pmu}_op()

Some of the sub-ops are acessible to all guests, and hence should be
rate-limited. In the xenoprof case, just like for XSA-146, include them
only in debug builds. Since the vPMU code is rather new, allow them to
be always present, but downgrade them to (rate limited) guest messages.

This is CVE-2015-7971 / XSA-152.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/x86/cpu/vpmu.c
xen/common/xenoprof.c